﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using SilverFlow.Controls;

namespace SilverlightDebateView.Views
{
    public partial class WindowNewOpinion : FloatingWindow, IPopup
    {
        public WindowNewOpinion()
        {
            InitializeComponent();
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
            this.Close();
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = false;
            this.Close();
        }

        private bool? _DialogResult;
        public bool? DialogResult
        {
            get
            {
                return _DialogResult;
            }
            set
            {
                _DialogResult = value;
            }
        }
    }
}
